
<div class="am-u-sm-4" style="width: 370px;padding: 0;">
    @if(isset($recommend['视频游戏']))
        <div class="table-l">
            <h2>视频游戏 </h2>
            <span>VIDEO GAME</span>
        </div>
        <ul class="am-avg-sm-2 am-thumbnails" style="margin-top: 72px;">
            @foreach($recommend['视频游戏'] as $item)
                <li class="p-thumbnail">
                    <a href="{{ route($item->type->name.'.show', [$item->id]) }}" title="{{ $item->title }}">
                        <img src="{{ route('image', [$item->cover, '178x100']) }}" class="am-thumbnail" />
                        <div class="list-shade">
                            <span>
                                @if(mb_strlen($item->title) > 12)
                                    {{ mb_substr($item->title, 0, 11) }}...
                                @else
                                    {{ $item->title }}
                                @endif
                            </span>
                        </div>
                        <div class="v-gbtn"><img src="{{ asset('images/v-btn.png') }}" style=" width: 30px; height: 30px;"></div>
                    </a>
                </li>
            @endforeach
        </ul>
    @endif
    @if(isset($recommend['游戏攻略']))
    <div class="table-l" style="overflow: hidden;">
        <h2>游戏攻略</h2>
        <span>RAIDERS</span>
    </div>
    <div class="am-g">
        <ul>
            @foreach($recommend['游戏攻略'] as $item)
                @if ($loop->index > 3) @break @endif
                <li>
                    <div class="am-g list-gl">
                        <div class="am-u-sm-3 list-gl-h">
                            <h2>守望先锋</h2>
                            <span>7.5</span>
                        </div>
                        <div class="am-u-sm-9 am-u-end list-gl-con">
                            <p>
                                <a href="{{ route($item->type->name.'.show', [$item->id]) }}" title="{{ $item->title }}">
                                    @if(mb_strlen($item->title) > 18)
                                        {{ mb_substr($item->title, 0, 17) }}...
                                    @else
                                        {{ $item->title }}
                                    @endif
                                </a>
                            </p>
                            <p>
                                <span><img src="{{ asset('images/shoucang.png') }}">{{ $item->liked_count }}</span>
                                <span><img src="{{ asset('images/pinglun.png') }}">10</span>
                            </p>
                        </div>
                    </div>
                </li>
            @endforeach
        </ul>
    </div>
    @endif
</div>